﻿<%@ Page Language="C#" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="YearCapital.aspx.cs" Inherits="Thksoft.Module.DataDetail.YearCapital" %>

<!DOCTYPE html>
<html class="L_UI">
<head id="Head1" runat="server">
    <title>年资金明细</title>
    <link href="/UserCotrols/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css" />
    <script src="/UserCotrols/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<script type="text/javascript">

    function showbd2(id) {
        var today = new Date(); //获得当前时间
        if (id == undefined || id == 0) {
            return;
        }
        var option = {};
        option.Url = "/BusinessExpansion/Process/Business_Details.aspx?N_business_id=" + id;
        option.Area = ['800px', '570px'],
        //option.Scrollbar = true;
        option.Title = "年资金详情(" + id + ")";
        top.MessageBox.Load(option);

    }
</script>
<body class="bgcss">
    <form id="form1" runat="server">
        <div class="Window" style="min-width: 900px;">
            <div class="Header" style="height: 69px;">
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="table">
                    <tr>
                        <td style="width: 7%; text-align: right; padding-right: 5px;">公&nbsp;&nbsp;&nbsp;&nbsp;司：
                        </td>
                        <td style="width: 15%; text-align: left; padding-left: 10px;">
                            <uc2:CtrlCompany runat="server" ID="ddlCom" />
                        </td>
                        <td style="width: 7%; text-align: right; padding-right: 5px;">时&nbsp;&nbsp;&nbsp;&nbsp;间：
                        </td>
                        <td style="text-align: left; padding-left: 10px;">
                            <input id="txtDate" runat="server" class="Wdate INPUT" style="width: 80px;" type="text"
                                onclick="WdatePicker({dateFmt:'yyyy'})" />
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="4">
                            <asp:Button ID="btnSelect" runat="server" Text="查询" CssClass="bt_css_s" OnClick="btnSelect_Click" />&nbsp;
                                    <asp:Button ID="btnPrint" runat="server" Text="导出" CssClass="bt_css_s" OnClick="btnPrint_Click1" />&nbsp;
                        </td>
                    </tr>
                </table>
            </div>
            <div class="Content" style="top: 70px;">
                <div class="Pg-Content">
                    <asp:ScriptManager ID="ScriptManagers" runat="server" EnablePageMethods="True" EnableScriptGlobalization="True"
                        EnableScriptLocalization="True">
                    </asp:ScriptManager>
                    <asp:Panel ID="Panel1" runat="server">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:GridView ID="grvShow" runat="server" AutoGenerateColumns="False" CssClass="cont_list zebra"
                                    Width="100%" OnRowDataBound="grvShow_RowDataBound" EmptyDataText="没有查找到您要的数据"
                                    AllowSorting="True" OnSorting="grvShow_Sorting" AllowPaging="True">
                                    <Columns>
                                        <asp:BoundField DataField="N_YEAR" HeaderText="年" SortExpression="N_YEAR" ItemStyle-Width="80px" />
                                        <asp:BoundField DataField="C_YEARAPP_NAME" HeaderText="名称" SortExpression="C_YEARAPP_NAME" ItemStyle-Width="200px" />
                                        <asp:BoundField DataField="C_USER_NAME" HeaderText="申请人" SortExpression="C_USER_NAME" ItemStyle-Width="80px" />
                                        <asp:BoundField DataField="D_OPERATOR_TIME" HeaderText="申请时间" SortExpression="D_OPERATOR_TIME" ItemStyle-Width="150px" />
                                        <asp:BoundField DataField="N_BUSINESS_STATE" HeaderText="流程状态" SortExpression="N_BUSINESS_STATE" ItemStyle-Width="80px" />
                                        <asp:BoundField DataField="INTO_SUM" HeaderText="流入合计" SortExpression="" ItemStyle-Width="70px" />
                                        <asp:BoundField DataField="OUT_SUM" HeaderText="流出合计" SortExpression="" ItemStyle-Width="80px" />
                                        <%--<asp:TemplateField HeaderText="申请时间" SortExpression="T1.D_OPERATOR_TIME">
                                                <ItemTemplate>
                                                    <%#(Convert.ToDateTime(Eval("D_OPERATOR_TIME")).ToString("yyyy-MM-dd HH:mm:ss"))%>
                                                </ItemTemplate>
                                            </asp:TemplateField>--%>
                                        <%--<asp:TemplateField HeaderText="流程状态" SortExpression="T1.N_BUSINESS_STATE">
                                                <ItemTemplate>
                                                    <%# Convert.ToInt32(Eval("N_BUSINESS_STATE")) == 0 ? "注销" : (Convert.ToInt32(Eval("N_BUSINESS_STATE")) == 1 ? "启用" : "归档")%>
                                                </ItemTemplate>
                                            </asp:TemplateField>--%>
                                        <asp:TemplateField HeaderText="详情" ItemStyle-Width="5%">
                                            <ItemTemplate>
                                                <asp:Panel ID="Panel2" runat="server">
                                                    <input type="image" id="imgXx" src="/Images/XiangXi.png" onclick='showbd2(<%#Eval("N_BUSINESS_ID") %>)'
                                                        title="查看详细" />
                                                    <asp:Label ID="lblBuid" runat="server" Text='<%#Eval("N_BUSINESS_ID") %>' Visible="false"></asp:Label>
                                                </asp:Panel>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </asp:Panel>
                </div>
                <div class="Pg">
                    <uc1:Pagination ID="PageIng" runat="server" IsDataBindOnLoad="false" OnDataBinding="PageIng_DataBinding"
                        Visible="false" />
                </div>
            </div>
        </div>
    </form>
</body>
</html>